# -*- coding: utf-8 -*-
# @Author  : BoPo
# @Time    : 2021/12/7 12:30
# @Function:
import json

from loguru import logger

definitions = json.load(open('schema.json'))['definitions']

for k, v in definitions.items():
    with open(f'definitions/{k}.json', 'w') as fp:
        json.dump(v, fp, ensure_ascii=False)
        logger.warning(f'definitions/{k}.json')
